﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bimaru
{
    class Program
    {
        static void Main(string[] args)
        {
            Game game = new Game(10);
            //game.PlaceBoats(4);

            string x = NodeRootPath(Guid.NewGuid(), ".jpg", true, true);
            string y = NodeRootPath(Guid.NewGuid(), ".jpg", false, false);

        }

        private static string NodeRootPath(Guid guid, string fileType, bool IsFileSystem, bool IsTemp)
        {
            string separator = (IsFileSystem) ? "\\" : "/";
            string _temp = (IsTemp) ? "_temp" : string.Empty;
            string userId = guid.ToString();
            return string.Format("{0}{1}{0}{2}{0}{3}{0}{4}{0}{5}{6}{7}", new object[] { separator, userId[0], userId[1], userId[2], userId[3], userId, _temp, fileType });
        }

    }
}
